.class public Lcom/estrongs/android/widget/m;
.super Landroid/app/Dialog;
.source "LogSettingApkFromDialog.java"


# instance fields
.field private a:Landroid/content/Context;

.field private b:Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;

.field private c:Landroid/widget/CheckBox;

.field private d:Landroid/widget/Button;

.field private e:Landroid/widget/Button;

.field private f:Landroid/os/Handler;

.field private g:Landroidx/recyclerview/widget/RecyclerView;

.field private h:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;",
            ">;"
        }
    .end annotation
.end field

.field private i:Landroid/widget/ProgressBar;

.field private j:Landroid/widget/TextView;

.field k:Ljava/lang/Runnable;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const v0, 0x7f1202a5

    .line 1
    invoke-direct {p0, p1, v0}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    .line 2
    new-instance v0, Lcom/estrongs/android/widget/m$a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/widget/m$a;-><init>(Lcom/estrongs/android/widget/m;)V

    iput-object v0, p0, Lcom/estrongs/android/widget/m;->k:Ljava/lang/Runnable;

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/widget/m;->a:Landroid/content/Context;

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/widget/m;->e()V

    .line 5
    new-instance p1, Ljava/lang/Thread;

    iget-object v0, p0, Lcom/estrongs/android/widget/m;->k:Ljava/lang/Runnable;

    invoke-direct {p1, v0}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {p1}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/widget/m;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/widget/m;->a:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic a(Lcom/estrongs/android/widget/m;Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;)Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/widget/m;->b:Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;

    return-object p1
.end method

.method static synthetic a(Lcom/estrongs/android/widget/m;Ljava/util/ArrayList;)Ljava/util/ArrayList;
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/widget/m;->h:Ljava/util/ArrayList;

    return-object p1
.end method

.method private a(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;",
            ">;)V"
        }
    .end annotation

    .line 4
    invoke-virtual {p0}, Landroid/app/Dialog;->dismiss()V

    .line 5
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    .line 6
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    .line 7
    iget-object v1, v1, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;->packageName:Ljava/lang/String;

    invoke-virtual {v0, v1, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    .line 8
    :cond_0
    invoke-virtual {v0}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object p1

    .line 9
    invoke-interface {p1}, Ljava/util/Set;->size()I

    move-result v0

    iget-object v1, p0, Lcom/estrongs/android/widget/m;->h:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    const-string v2, "new_file_apk_from_setting"

    if-ne v0, v1, :cond_1

    .line 10
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object p1

    const/4 v0, 0x0

    invoke-virtual {p1, v2, v0}, Lcom/estrongs/android/pop/o;->b(Ljava/lang/String;Ljava/util/Set;)V

    goto :goto_1

    .line 11
    :cond_1
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v0

    invoke-virtual {v0, v2, p1}, Lcom/estrongs/android/pop/o;->b(Ljava/lang/String;Ljava/util/Set;)V

    :goto_1
    return-void
.end method

.method static synthetic b(Lcom/estrongs/android/widget/m;)Landroid/os/Handler;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/widget/m;->f:Landroid/os/Handler;

    return-object p0
.end method

.method private b()V
    .locals 4

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/widget/m;->b:Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;

    if-eqz v1, :cond_3

    .line 4
    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/log/adapter/LogChooseFileTypeBaseAdapter;->c()Ljava/util/List;

    move-result-object v1

    .line 5
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    .line 6
    iget-boolean v3, v2, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;->isChecked:Z

    if-eqz v3, :cond_0

    .line 7
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 8
    :cond_1
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-nez v1, :cond_2

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/widget/m;->a:Landroid/content/Context;

    const v1, 0x7f110615

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_1

    .line 10
    :cond_2
    invoke-direct {p0, v0}, Lcom/estrongs/android/widget/m;->a(Ljava/util/List;)V

    :cond_3
    :goto_1
    return-void
.end method

.method static synthetic c(Lcom/estrongs/android/widget/m;)Ljava/util/ArrayList;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/widget/m;->h:Ljava/util/ArrayList;

    return-object p0
.end method

.method private c()V
    .locals 7

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v0

    const-string v1, "new_file_apk_from_setting"

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/o;->c(Ljava/lang/String;)Ljava/util/Set;

    move-result-object v0

    const/4 v1, 0x1

    if-eqz v0, :cond_6

    .line 3
    invoke-interface {v0}, Ljava/util/Set;->size()I

    move-result v2

    if-nez v2, :cond_0

    goto/16 :goto_3

    .line 4
    :cond_0
    invoke-interface {v0}, Ljava/util/Set;->size()I

    move-result v2

    iget-object v3, p0, Lcom/estrongs/android/widget/m;->h:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-ne v2, v3, :cond_1

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/widget/m;->c:Landroid/widget/CheckBox;

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/widget/m;->b:Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;->a(Z)V

    goto :goto_2

    .line 7
    :cond_1
    iget-object v2, p0, Lcom/estrongs/android/widget/m;->c:Landroid/widget/CheckBox;

    const v3, 0x7f08071b

    invoke-virtual {v2, v3}, Landroid/widget/CheckBox;->setBackgroundResource(I)V

    .line 8
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 9
    iget-object v3, p0, Lcom/estrongs/android/widget/m;->b:Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;

    invoke-virtual {v3}, Lcom/estrongs/android/pop/app/log/adapter/LogChooseFileTypeBaseAdapter;->c()Ljava/util/List;

    move-result-object v3

    .line 10
    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_2
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_4

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    const/4 v5, 0x0

    .line 11
    :goto_0
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v6

    if-ge v5, v6, :cond_2

    .line 12
    invoke-interface {v3, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    iget-object v6, v6, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;->packageName:Ljava/lang/String;

    invoke-virtual {v4, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 13
    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-interface {v2, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_3
    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    .line 14
    :cond_4
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_1
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_5

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    .line 15
    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v4

    invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    iput-boolean v1, v4, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;->isChecked:Z

    .line 16
    iget-object v4, p0, Lcom/estrongs/android/widget/m;->b:Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;

    invoke-virtual {v4}, Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;->d()[Z

    move-result-object v4

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    aput-boolean v1, v4, v2

    goto :goto_1

    .line 17
    :cond_5
    :goto_2
    iget-object v0, p0, Lcom/estrongs/android/widget/m;->b:Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    goto :goto_4

    .line 18
    :cond_6
    :goto_3
    iget-object v0, p0, Lcom/estrongs/android/widget/m;->c:Landroid/widget/CheckBox;

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 19
    iget-object v0, p0, Lcom/estrongs/android/widget/m;->b:Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;->a(Z)V

    .line 20
    iget-object v0, p0, Lcom/estrongs/android/widget/m;->b:Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    .line 21
    :goto_4
    iget-object v0, p0, Lcom/estrongs/android/widget/m;->c:Landroid/widget/CheckBox;

    new-instance v1, Lcom/estrongs/android/widget/m$e;

    invoke-direct {v1, p0}, Lcom/estrongs/android/widget/m$e;-><init>(Lcom/estrongs/android/widget/m;)V

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    return-void
.end method

.method static synthetic d(Lcom/estrongs/android/widget/m;)Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/widget/m;->b:Lcom/estrongs/android/pop/app/log/adapter/LogSettingApkFromAdapter;

    return-object p0
.end method

.method private d()V
    .locals 4

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/widget/m;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c0255

    const/4 v2, 0x0

    .line 3
    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 4
    new-instance v1, Landroid/view/ViewGroup$LayoutParams;

    const/4 v2, -0x2

    invoke-direct {v1, v2, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    .line 5
    invoke-super {p0, v0, v1}, Landroid/app/Dialog;->setContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    const v1, 0x7f090732

    .line 6
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroidx/recyclerview/widget/RecyclerView;

    iput-object v1, p0, Lcom/estrongs/android/widget/m;->g:Landroidx/recyclerview/widget/RecyclerView;

    const/high16 v2, 0x2000000

    .line 7
    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->setScrollBarStyle(I)V

    .line 8
    iget-object v1, p0, Lcom/estrongs/android/widget/m;->g:Landroidx/recyclerview/widget/RecyclerView;

    new-instance v2, Lcom/estrongs/android/pop/app/log/WrapContentLinearLayoutManager;

    iget-object v3, p0, Lcom/estrongs/android/widget/m;->a:Landroid/content/Context;

    invoke-direct {v2, v3}, Lcom/estrongs/android/pop/app/log/WrapContentLinearLayoutManager;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, v2}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    const v1, 0x7f090731

    .line 9
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/estrongs/android/widget/m;->d:Landroid/widget/Button;

    const/4 v2, 0x0

    .line 10
    invoke-virtual {v1, v2}, Landroid/widget/Button;->setAllCaps(Z)V

    const v1, 0x7f090730

    .line 11
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/estrongs/android/widget/m;->e:Landroid/widget/Button;

    .line 12
    invoke-virtual {v1, v2}, Landroid/widget/Button;->setAllCaps(Z)V

    const v1, 0x7f09072f

    .line 13
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/CheckBox;

    iput-object v1, p0, Lcom/estrongs/android/widget/m;->c:Landroid/widget/CheckBox;

    const v1, 0x7f09092d

    .line 14
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ProgressBar;

    iput-object v1, p0, Lcom/estrongs/android/widget/m;->i:Landroid/widget/ProgressBar;

    .line 15
    iget-object v1, p0, Lcom/estrongs/android/widget/m;->e:Landroid/widget/Button;

    new-instance v3, Lcom/estrongs/android/widget/m$c;

    invoke-direct {v3, p0}, Lcom/estrongs/android/widget/m$c;-><init>(Lcom/estrongs/android/widget/m;)V

    invoke-virtual {v1, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 16
    iget-object v1, p0, Lcom/estrongs/android/widget/m;->d:Landroid/widget/Button;

    new-instance v3, Lcom/estrongs/android/widget/m$d;

    invoke-direct {v3, p0}, Lcom/estrongs/android/widget/m$d;-><init>(Lcom/estrongs/android/widget/m;)V

    invoke-virtual {v1, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 17
    iget-object v1, p0, Lcom/estrongs/android/widget/m;->i:Landroid/widget/ProgressBar;

    invoke-virtual {v1, v2}, Landroid/widget/ProgressBar;->setVisibility(I)V

    const v1, 0x7f090442

    .line 18
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/widget/m;->j:Landroid/widget/TextView;

    .line 19
    iget-object v1, p0, Lcom/estrongs/android/widget/m;->a:Landroid/content/Context;

    const v2, 0x7f110623

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method static synthetic e(Lcom/estrongs/android/widget/m;)Landroidx/recyclerview/widget/RecyclerView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/widget/m;->g:Landroidx/recyclerview/widget/RecyclerView;

    return-object p0
.end method

.method private e()V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, v0}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    const/4 v0, 0x1

    .line 3
    invoke-virtual {p0, v0}, Landroid/app/Dialog;->setCancelable(Z)V

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/widget/m;->d()V

    .line 5
    new-instance v0, Lcom/estrongs/android/widget/m$b;

    invoke-direct {v0, p0}, Lcom/estrongs/android/widget/m$b;-><init>(Lcom/estrongs/android/widget/m;)V

    iput-object v0, p0, Lcom/estrongs/android/widget/m;->f:Landroid/os/Handler;

    return-void
.end method

.method static synthetic f(Lcom/estrongs/android/widget/m;)Landroid/widget/CheckBox;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/widget/m;->c:Landroid/widget/CheckBox;

    return-object p0
.end method

.method static synthetic g(Lcom/estrongs/android/widget/m;)Landroid/widget/ProgressBar;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/widget/m;->i:Landroid/widget/ProgressBar;

    return-object p0
.end method

.method static synthetic h(Lcom/estrongs/android/widget/m;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/widget/m;->c()V

    return-void
.end method

.method static synthetic i(Lcom/estrongs/android/widget/m;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/widget/m;->b()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 7

    .line 12
    invoke-virtual {p0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 13
    invoke-virtual {p0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;

    move-result-object v0

    .line 14
    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    .line 15
    iget-object v1, p0, Lcom/estrongs/android/widget/m;->a:Landroid/content/Context;

    const-string v2, "window"

    invoke-virtual {v1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/WindowManager;

    .line 16
    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    .line 17
    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v2

    .line 18
    invoke-virtual {v1}, Landroid/view/Display;->getHeight()I

    move-result v1

    int-to-double v3, v1

    const-wide v5, 0x3fe999999999999aL    # 0.8

    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v3, v3, v5

    double-to-int v1, v3

    iput v1, v2, Landroid/view/WindowManager$LayoutParams;->height:I

    .line 19
    invoke-virtual {v0, v2}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    :cond_0
    return-void
.end method

.method public a(I)V
    .locals 1

    if-nez p1, :cond_0

    .line 20
    iget-object p1, p0, Lcom/estrongs/android/widget/m;->c:Landroid/widget/CheckBox;

    const v0, 0x7f080163

    invoke-virtual {p1, v0}, Landroid/widget/CheckBox;->setBackgroundResource(I)V

    .line 21
    iget-object p1, p0, Lcom/estrongs/android/widget/m;->c:Landroid/widget/CheckBox;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0

    .line 22
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/widget/m;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ne p1, v0, :cond_1

    .line 23
    iget-object p1, p0, Lcom/estrongs/android/widget/m;->c:Landroid/widget/CheckBox;

    const v0, 0x7f080165

    invoke-virtual {p1, v0}, Landroid/widget/CheckBox;->setBackgroundResource(I)V

    .line 24
    iget-object p1, p0, Lcom/estrongs/android/widget/m;->c:Landroid/widget/CheckBox;

    const/4 v0, 0x1

    invoke-virtual {p1, v0}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0

    .line 25
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/widget/m;->c:Landroid/widget/CheckBox;

    const v0, 0x7f08071b

    invoke-virtual {p1, v0}, Landroid/widget/CheckBox;->setBackgroundResource(I)V

    :goto_0
    return-void
.end method

.method public show()V
    .locals 0

    .line 1
    invoke-super {p0}, Landroid/app/Dialog;->show()V

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/widget/m;->a()V

    return-void
.end method
